package server;

import java.text.SimpleDateFormat;  
import java.util.Date;  
import java.util.TimerTask;

import com.gy.room.roomManager;  
public class timeTask extends TimerTask {  
   private SimpleDateFormat sf=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");  
 @Override  
 public void run() {  
	 roomManager.getInstance().update();
     System.out.println("现在时间是："+sf.format(new Date()));  
 }  
}  